﻿using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Reflection;
using IDAL;
using Model;

namespace BLL
{
    public class ClientSoftware : BaseService<ClientSoftwareInfo>
    {
        private static readonly IClientSoftware dal = DALFactory.DataAccess.CreateClientSoftware();

        public override void SetCurrentRepository()
        {
            CurrentRepository = dal;
        }

        public ClientSoftwareInfo GetClientSoftwarebyName(string cSName)
        {
            return dal.GetClientSoftwarebyName(cSName);
        }
    }

    public class ClientSoft : BaseService<ClientSoftInfo>
    {
        private static readonly IClientSoft dal = DALFactory.DataAccess.CreateClientSoft();

        public override void SetCurrentRepository()
        {
            CurrentRepository = dal;
        }

        public ClientSoftInfo GetClientSoftbyNV(string cSName, string cSVersion)
        {
            return dal.GetClientSoftbyNV(cSName, cSVersion);
        }

        public IList<ClientSoftInfo> GetClientSoftbyName(string cSName)
        {
            return dal.GetClientSoftbyName(cSName);
        }
    }
}
